約 6,545,004 件
https://w.atwiki.jp/kobawiki/pages/15.html
CentOS5 をインストールしてからやったことメモ ユーザ追加 $ adduser アカウント $ passwd アカウント ※/home/アカウント 出来上がりホームディレクトリとなる シェル変更 シェルをzshに変更 $ chsh -s /bin/zsh yumコマンド覚書 yum install パッケージ名 パッケージのインストール インストールパッケージ zsh とりあえずzsh vim-enhanced mysql-server-5.0系
https://w.atwiki.jp/banrui/pages/35.html
さくらVPSへのインストール〜 さくら社長によるブログ CentOSをサーバーとして活用するための基本的な設定 Cent OSをインストールした後、「yum update」を行う前に必ず「yum install yum-fastestmirror」すること 参考ページ
https://w.atwiki.jp/dyfantasista/pages/12.html
目次 目次【はじめに】 【情報】 【インストール】CentOS 5.2 Ruby RubyGems Ruby on Rails MySQL Redmine 日本語対応 リポジトリ情報の定期取得 [#g28bdc8a] 【初期設定】 【使い方】 【その他】 【はじめに】 for CentOS5.2 【情報】 Redminehttp //www.redmine.org/ 紹介http //gihyo.jp/dev/serial/01/redmine/0001 CentOS に Ruby on Railshttp //centos.oss.sc/ruby/ CentOS にプロジェクト管理ソフトの redMine をインストールhttp //urobonyu.u-andme.net/index.php/2007/08/01/225 その他http //centos.bungu-do.jp/2008/12/redmine.html 【インストール】 CentOS 5.2 GUIなしインストール リモート端末の漢字コード:UTF-8 Ruby http //centos.oss.sc/ruby/ yum -y install ruby rdoc ruby-devel Installing ruby-libs ######################### [1/5] Installing ruby ######################### [2/5] Installing ruby-irb ######################### [3/5] Installing ruby-devel ######################### [4/5] Installing ruby-rdoc ######################### [5/5] ruby -v ruby 1.8.5 (2006-08-25) [i386-linux] RubyGems http //centos.oss.sc/ruby/ cd /usr/local/src wget http //rubyforge.org/frs/download.php/35283/rubygems-1.1.1.tgz tar xvzf rubygems-1.1.1.tgz cd rubygems-1.1.1 ruby setup.rb gem -v 1.1.1 Ruby on Rails http //centos.oss.sc/ruby/ http //d.hatena.ne.jp/cactusman/20080217/p1 gem install rails Bulk updating Gem source index for http //gems.rubyforge.org/ Bulk updating Gem source index for http //gems.rubyforge.org/ Successfully installed rake-0.8.1 Successfully installed activesupport-2.1.0 Successfully installed activerecord-2.1.0 Successfully installed actionpack-2.1.0 Successfully installed actionmailer-2.1.0 Successfully installed activeresource-2.1.0 Successfully installed rails-2.1.0 7 gems installed Installing ri documentation for rake-0.8.1... Installing ri documentation for activesupport-2.1.0... Installing ri documentation for activerecord-2.1.0... Installing ri documentation for actionpack-2.1.0... Installing ri documentation for actionmailer-2.1.0... Installing ri documentation for activeresource-2.1.0... Installing RDoc documentation for rake-0.8.1... Installing RDoc documentation for activesupport-2.1.0... Installing RDoc documentation for activerecord-2.1.0... Installing RDoc documentation for actionpack-2.1.0... Installing RDoc documentation for actionmailer-2.1.0... Installing RDoc documentation for activeresource-2.1.0... MySQL http //centossrv.com/mysql.shtml http //db.setunai.net/2008/01/10/centos45%E3%81%ABmysql5%E3%82%92%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB%E3%81%99%E3%82%8B/ Install yum --enablerepo=centosplus install mysql-server-5* yum list mysql* Loading "installonlyn" plugin Setting up repositories Reading repository metadata in from local files Installed Packages mysql.i386 5.0.22-2.2.el5_1.1 installed mysql-server.i386 5.0.22-2.2.el5_1.1 installed Available Packages MySQL-python.i386 1.2.1-1 base mysql-bench.i386 5.0.22-2.2.el5_1.1 updates mysql-connector-odbc.i386 3.51.12-2.2 base mysql-devel.i386 5.0.22-2.2.el5_1.1 updates mysql-test.i386 5.0.22-2.2.el5_1.1 updates Config vi /etc/my.cnf [mysqld] ・ ・ ・ default-character-set = utf8 skip-character-set-client-handshake 起動/停止 /etc/rc.d/init.d/mysqld start /etc/rc.d/init.d/mysqld stop 自動起動 chkconfig mysqld on 起動設定確認 chkconfig --list mysqld ログイン mysql -u root 登録済ユーザ、パスワード確認 select user,host,password from mysql.user; +------+-----------------------+----------+ | user | host | password | +------+-----------------------+----------+ | root | localhost | | | root | hippo.about-rd.co.jp | | | root | 127.0.0.1 | | | | localhost | | | | hippo.about-rd.co.jp | | +------+-----------------------+----------+ パスワード設定ホスト名がlocalhostのrootユーザにパスワード設定 set password for root@localhost=password( ikeken ); ホスト名が自ホストのrootユーザにパスワード設定 set password for root@ hippo.about-rd.co.jp =password( ikeken ); ユーザー追加例 GRANT ALL PRIVILEGES ON *.* TO root@211.9.59.3 IDENTIFIED BY ikeken WITH GRANT OPTION; GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY ikeken WITH GRANT OPTION; 接続確認 mysql -u root -p grep `hostname` /etc/hosts mysql -u root -h hippo.about-rd.co.jp -p 匿名ユーザ削除 delete from mysql.user where user= ; select user,host,password from mysql.user; testデータベース削除 mysql -u root -p show databases; drop database test; データベース作成 mysql -u root -p create database redmine DEFAULT CHARACTER SET utf8; show databases; Redmine cd /usr/local/src wget http //files.rubyforge.vm.bytemark.co.uk/redmine/redmine-0.8.1.tar.gz tar zxvf redmine-0.8.1.tar.gz cd redmine-0.8.1/config cp database.yml.example database.yml mysqladmin -p variables | grep socket vi database.yml production adapter mysql database redmine host localhost username root password kenkenproject★ socket /var/lib/mysql/mysql.sock encoding utf8 cd /usr/local/src/redmine-0.8.1 rake db migrate RAILS_ENV="production" rake load_default_data RAILS_ENV="production" ja vi config/environment.rb # ENV[ RAILS_ENV ] ||= production ↓ ENV[ RAILS_ENV ] ||= production cp config/email.yml.example config/email.yml vi config/email.yml # Outgoing email settings production delivery_method smtp smtp_settings address localhost port 25 domain about-rd.co.jp # authentication login # user_name redmine@example.net # password redmine development delivery_method smtp smtp_settings address 127.0.0.1 port 25 domain example.net authentication login user_name redmine@example.net password redmine 権限 chmod +x script/server port system-config-securitylevel 3000 起動/停止 ./script/server -e production [Ctrl] + [c] 確認http //itsgr1.about-rd.co.jp 3000/ログイン admin admin ※初期 パスワード変更http //itsgr1.about-rd.co.jp 3000/users/edit/1 ikeken 日本語対応 vi /usr/local/src/redmine-0.8.1/lang/ja.yml general_csv_encoding SJIS general_pdf_encoding UTF-8 ↓ general_csv_encoding SJIS general_pdf_encoding SJIS リポジトリ情報の定期取得 [#g28bdc8a] vi /etc/crontab */10 * * * * root cd /usr/local/src/redmine-0.8.1 ruby script/runner "Repository.fetch_changesets" -e production 管理 - 設定 - リポジトリ - コミットを自動取得する をOFFにする。 【初期設定】 http //gihyo.jp/dev/serial/01/redmine/0002?page=3 My account modified 設定ホーム - 管理 - 設定 - 全般 ホーム - 管理 - 設定 - 認証 ホーム - 管理 - 設定 - メール通知 【使い方】 Redmineを使ったプロジェクト管理(その1)http //gihyo.jp/dev/serial/01/redmine/0003 Redmineを使ったプロジェクト管理(その2)http //gihyo.jp/dev/serial/01/redmine/0004 【その他】 さくらの場合http //www.gabuchan.net/blog/archives/11 以上 -
https://w.atwiki.jp/bigoyayubi/pages/51.html
CUIオンリーのCentOSサーバーにVNC接続X Window SystemとKDEをインストール 一旦リブート vncserverを起動 vncserverを終了 CUIオンリーのCentOSサーバーにVNC接続 X Window SystemとKDEをインストール $ yum groupinstall "X Window System" "KDE (K Desktop Environment)" 一旦リブート $ su # /sbin/shutdown -r now vncserverを起動 ※一般ユーザーで起動すること $vncserver vncserverを終了 $vncserver -kill 1
https://w.atwiki.jp/in-the-sky/pages/17.html
CentOS CentOSがどのようなディストリビューションなのかは…ぐぐってしらべてくれ。 基本的な設定 各種ツールのインストール sshの設定 cvsの設定 httpの設定
https://w.atwiki.jp/deccho/pages/15.html
仮想環境 CentOSのインストール VirtualBox+Vagrant環境上にCentOS7.1をインストールします。 CentOSのインストールCentOS7.1のインストール SSHクライアントからの接続確認 CentOS7.1のインストール http //www.vagrantbox.es/ にアクセスしてBoxファイルのURLをコピーする。 CentOS 7 x64 (Minimal, Shrinked, Guest Additions 4.3.26) (Monthly updates) を使う。 コマンドプロンプトから以下のコマンドを入力して仮想環境用のディレクトリを作る。 C \ mkdir Vagrant\CentOS7.1C \ cd Vagrant\CentOS7.1 Boxファイルをダウンロードする。 C \Vagrant\CentOS7.1 vagrant box add CentOS7.1 https //github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box== box Adding box CentOS7.1 (v0) for provider box Downloading https //github.com/holms/vagrant-centos7-box/releases/download/7.1.1503.001/CentOS-7.1.1503-x86_64-netboot.box== box Box download is resuming from prior download progress box Progress 100% (Rate 3126k/s, Estimated time remaining -- -- --)== box Successfully added box CentOS7.1 (v0) for virtualbox ! Boxが追加されていることを確認する。 C \Vagrant\CentOS7.1 vagrant box listCentOS7.1 (virtualbox, 0) 仮想環境の初期化をする。 C \Vagrant\CentOS7.1 vagrant init CentOS7.1A `Vagrantfile` has been placed in this directory. You are nowready to `vagrant up` your first virtual environment! Please readthe comments in the Vagrantfile as well as documentation on`vagrantup.com` for more information on using Vagrant. 仮想環境を起動する。 C \Vagrant\CentOS7.1 vagrant upBringing machine default up with virtualbox provider...== default Importing base box CentOS7.1 ...== default Matching MAC address for NAT networking...== default Setting the name of the VM CentOS71_default_1431791415011_58624== default Clearing any previously set forwarded ports...== default Clearing any previously set network interfaces...== default Preparing network interfaces based on configuration... default Adapter 1 nat== default Forwarding ports... default 22 = 2222 (adapter 1)== default Booting VM...== default Waiting for machine to boot. This may take a few minutes... default SSH address 127.0.0.1 2222 default SSH username vagrant default SSH auth method private key default Warning Connection timeout. Retrying... default Warning Connection timeout. Retrying... default Warning Connection timeout. Retrying... default default Vagrant insecure key detected. Vagrant will automatically replace default this with a newly generated keypair for better security. default default Inserting generated public key within guest... default Removing insecure key from the guest if its present... default Key inserted! Disconnecting and reconnecting using new SSH key...== default Machine booted and ready!== default Checking for guest additions in VM...== default Mounting shared folders... default /vagrant = C /Vagrant/CentOS7.1 SSHクライアントからの接続確認 PuTTYから仮想環境に接続する。PuTTYからの接続情報は 03.PuTTYのインストール で設定したとおり。 接続情報は以下のとおり。 項目 値 ホスト名(IPアドレス) 127.0.0.1 ポート番号 2222 ユーザー vagrant パスワード vagrant PuTTYを起動し、事前に設定した VirtualBox(Vagrant) をダブルクリックすると接続を開始する。 初回接続時など、サーバーの鍵がPuTTYにキャッシュされていない旨の警告がでるので、[はい(Y)]をクリックしてPuTTYにキャッシュする。 パスワードを入力してログインする。 Using username "vagrant".vagrant@127.0.0.1 s password Last login Sat May 16 15 53 52 2015 from 10.0.2.2Welcome to your Vagrant-built virtual machine.[vagrant@localhost ~]$ 次のページ 05.CentOSのアップデート
https://w.atwiki.jp/kplus/pages/102.html
CentOSにRubyをインストールする 環境 CentOS 6.1 VMwarePlayer5.0.2 手順 yum install rubyだとインストールされるのが1.8.6版と古い。 最新版(2.0.0)をインストールしたいので、その手順を記す。 ※いつもの御呪い。 利用規約 を良く理解してから実行してください。 yumとRVMを使ってruby 2.0.0をインストールします。結構面倒くさいです。 【RVM(Ruby Version Manager)をインストールするための環境をつくる】 1.「libyaml-devel」インストールのため、yumリポジトリに「EPEL」を追加。 rpm -ihv http //dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 警告が出来ますが無視してOKです。 2.EPELがリポジトリ登録されたことを確認します。 yum repolist | grep epel 【bashにPATH登録】 3.bash_profileにPATHを登録する bash -s stable (curl -s https //raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) 4..bash_profileに反映されているかを確認 $ cat .bash_profile [[ -s "/home/workuser/.rvm/scripts/rvm" ]] source "/home/workuser/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* 5.~/.bash_profileを読み込みます。 $ . ~/.bash_profile 6.rvmが要求するパッケージを確認。 (当方では既に幾つかインストール済みだったため、下記のように表示された) 状況によってインストール前提条件は変わるようなので注意。 $ rvm requirements Installing requirements for centos, might require sudo password. Installing required packages libffi-devel 【RVMを確認】 7.rvmを実行して、ヘルプが表示されれば完了 【rubyをインストール】 8.RVMにあるパッケージを確認する rvm list known 9.rubyをインストール rvm insatall 2.0.0 10.インストールしたrubyを有効化し、バージョン確認 rvm use 2.0.0 ruby -v 【複数のrubyを使う場合】 11.use バージョン --defaultで規定バージョンを設定 rvm use 1.9.3 --default お約束のruby -vでバージョン確認 ちなみに最初にインストールしたバージョンがデフォルトになっているようだ。 参考 CentOSで、RVMをインストール | Cloud Berry http //cloud-berry.jp/wordpress/?p=181 ※よく下記URLを紹介されているが現在は無いようだ。 https //rvm.beginrescueend.com/rvm/install/
https://w.atwiki.jp/divadiva/pages/112.html
ここはCentOSがらみの備忘録ページです。 DVDドライブが使用できないがCentOSをインストールしたい 古いマシン(DL380G3とか)に最新のCentOSをインストールしたいが、マシンにDVDドライブは付いていないし、USB接続のDVDドライブからブートも出来ない、とかいった場合、ネットワークインスールを試してみましょう。 インストール先マシンにCD-ROMドライブがあることと、インストールDVDの内容を公開提供する別マシンがあることが前提です。 私の場合、別マシンのハードディスク上にCentOS DVDの内容を展開し、それをNFS共有で公開し、インストール先マシンからアクセスしました。また下記はCentOS6.2の例です。 まず最初にブート用CDを準備します これは、CD-Rにネットワークインストール用のブートイメージを焼きつけて用意します。6.2の場合は、CentOS-6.2-i386-netinstall.isoです。 インストールイメージを準備します まず通常DVDに焼きこむISOイメージを取得します。6.2の場合はCentOS-6.2-i386-bin-DVD1.isoです。 次に、ISOイメージの内容をハードディスクに展開します。次のようなコマンドでOKです。 mount -o loop CentOS-6.2-i386-bin-DVD1.iso NFS-DIRECTORY こうすると、ISOイメージの内容が NFS-DIRECTORY 以下に展開されます。以降、アンマウントするまで、 NFS-DIRECTORY は通常のリポジトリの代わりに使用できます。 インストールイメージをNFSで公開 ここは通常のNFSサーバの手順です。 /etc/exportsを編集して先程の NFS-DIRECTORY を公開し、NFSサーバをリスタートします。 service restart nfs あるいは、exportsファイルを再読み込みさせます。 exportfs -r 公開設定ができたら、下記のコマンドでNFS共有されているか確認します。 exportfs -v インストール先マシンをブート 最初に作成したブート用CDを使ってインストーラを起動します。 途中で「Installation Method」を聞いてくるので、「NFS directory」を選択し、NFS共有しているサーバとディレクトリを指定します。問題が無ければinstall.imgがネットワーク越しに読み込まれ、通常のインストールプロセスが開始されます。
https://w.atwiki.jp/pcmemo/pages/29.html
CentOS SELinux 動作確認 /usr/sbin/getenforce Enforcing 有効 Permissive 一切アクセス拒否はされないが本来拒否すべきものがログに記録される Disabled 無効 起動時のSELinux動作変更 /etc/selinux/config を編集 SELINUX=enforcing を設定したい値に(無効ならdisabled) ホスト名の変更 /etc/sysconfig/network /etc/hosts の2箇所を変更 /etc/rc.d/init.d/network restart でネットワークを再起動 EPELリポジトリの追加 wget http //download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm rpm -Uvh epel-release-5-4.noarch.rpm Vimの機能追加 ヘルプを使う yum install vim-common ウィンドウ分割(splitなど)を使う yum install vim-enhanced subversionの1.6が欲しい rpmforge-extrasにある MySQLのインストール yum install mysql-server rootのSSHログインを禁止する /etc/ssh/sshd_configを編集 39行目あたり #PermitRootLogin yes ↓ PermitRootLogin no sshdをリスタート service sshd restart RPMforgeインストール # rpm --import http //apt.sw.be/RPM-GPG-KEY.dag.txt # wget http //packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm # rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
https://w.atwiki.jp/devlabo/pages/13.html
参考ページ CentOS7にMysql5.6インストール(バージョン指定してインストールしたい場合) https //qiita.com/miqpim/items/5c519a9979d9b269d47e 参考にさせていただきました。ありがとうございした。